package com.ly.mapper;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;
import com.ly.bean.EasybuySeller;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
@author 李岩
@date 2021/12/14-13:52
@describe
*/
@Mapper
public interface EasybuySellerMapper {
    /**
     * delete by primary key
     * @param sellerId primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(String sellerId) throws Exception;

    /**
     * insert record to table
     * @param record the record
     * @return insert count
     */
    int insert(EasybuySeller record) throws Exception;

    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(EasybuySeller record) throws Exception;

    /**
     * 根据卖家名查询卖家对象
     */
    EasybuySeller selectByPrimaryKey(String sellerId) throws Exception;

    /**
     * 查询所有商家
     */
    List<EasybuySeller> selectAllSeller() throws Exception;
    /**
     * update record selective
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(EasybuySeller record) throws Exception;

    /**
     * update record
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(EasybuySeller record) throws Exception;
}